import 'package:fish_redux/fish_redux.dart';
import '../UserInfo/user_info_entity.dart';

enum GlobalAction { UserLogin, UserLogout, onAction }

class GlobalActionCreator {
  static Action onUserLogin(UserInfoEntity info) {
    return Action(GlobalAction.UserLogin, payload: info);
  }

  static Action onUserLogout() {
    return const Action(GlobalAction.UserLogout);
  }

  static Action onAction() {
    return const Action(GlobalAction.onAction);
  }
}
